var dispatcher = require('../../../util/dispatcher');
module.exports = function(app) {
    return new Handler(app);
};
var Handler = function(app) {
    this.app = app;
};
var handler = Handler.prototype;

handler.queryEntry= function(msg, session, next)
{
    var uid = 1;
    var servers = this.app.getServersByType('connector');
    var res = dispatcher.dispatch(uid, servers);
    var msg =
    {
        'code': 200,
        'host': res.host,
        'port': res.clientPort
    };
    next(null,msg);
};
